CommandInsertVehicle Class Reference

#include <CommandInsertVehicle.h>

Inheritance diagram for CommandInsertVehicle:

Command List of all members.

Public Member Functions

 CommandInsertVehicle (osg::Vec3 pos, OSGWindows *osgwind, string pathname, float scale)
bool execute ()
bool unexecute ()

Private Attributes

OSGWindows * osgwind_
Vehicle * vehicle
vector< TraffEduObject * > insertedObjs_

Constructor & Destructor Documentation

CommandInsertVehicle::CommandInsertVehicle (  osg::Vec3  pos,
OSGWindows *  osgwind,
string  pathname,
float  scale
) 
 

A constructor. Initializes osgwind_ and creates a new vehicle object by using the parameter of pathname.

Parameters:
pos a osg::Vec3 argument.
osgwind an OSGWindows pointer.
pathname a string argument.
scale a float argument.


Member Function Documentation

bool CommandInsertVehicle::execute (   )  [virtual]
 

do the insertion of vehicle object operation.

Returns:
Operation success

Implements Command.

bool CommandInsertVehicle::unexecute (   )  [virtual]
 

undo the insertion of vehicle object operation.

Returns:
Operation success

Implements Command.


Member Data Documentation

vector<TraffEduObject*> CommandInsertVehicle::insertedObjs_ [private]
 

a private vector of TraffEduObjects. It holds the inserted vehicle objects.

OSGWindows* CommandInsertVehicle::osgwind_ [private]
 

a private variable. It is initialized with the unique OSGWindows instance.

Vehicle* CommandInsertVehicle::vehicle [private]
 

a private variable. It is used to hold the created vehicle object.


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:00 2006 by  doxygen 1.4.6-NO